package com.kayt.cyberBar.cyber.business.entity.po;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonIgnore;


/**
 * The persistent class for the b_cyber_base_activity_prize database table.
 * 
 */
@Entity
@Table(name="b_cyber_base_activity_prize")
@NamedQuery(name="BCyberBaseActivityPrize.findAll", query="SELECT b FROM BCyberBaseActivityPrize b")
public class BCyberBaseActivityPrize implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String activityCode;
	private String createTime;
	private String count;
	private String prizeCode;
	private String prizeName;
	private String prizeType;
	private String standardTime;
	private String unitCountCode;
	private String updateTime;
	
	private BCyberBaseActivity activity;

	public BCyberBaseActivityPrize() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public String getCount() {
		return this.count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	@Column(name="STANDARD_TIME")
	public String getStandardTime() {
		return standardTime;
	}


	public void setStandardTime(String standardTime) {
		this.standardTime = standardTime;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	@Column(name="PRIZE_CODE")
	public String getPrizeCode() {
		return this.prizeCode;
	}

	public void setPrizeCode(String prizeCode) {
		this.prizeCode = prizeCode;
	}


	@Column(name="PRIZE_NAME")
	public String getPrizeName() {
		return this.prizeName;
	}

	public void setPrizeName(String prizeName) {
		this.prizeName = prizeName;
	}


	@Column(name="PRIZE_TYPE")
	public String getPrizeType() {
		return this.prizeType;
	}

	public void setPrizeType(String prizeType) {
		this.prizeType = prizeType;
	}


	@Column(name="UNIT_COUNT_CODE")
	public String getUnitCountCode() {
		return this.unitCountCode;
	}

	public void setUnitCountCode(String unitCountCode) {
		this.unitCountCode = unitCountCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name="ACTIVITY_CODE")
	public String getActivityCode() {
		return activityCode;
	}


	public void setActivityCode(String activityCode) {
		this.activityCode = activityCode;
	}


	@ManyToOne(targetEntity = BCyberBaseActivity.class, fetch = FetchType.LAZY)
	@JoinColumn(name="ACTIVITY_CODE", referencedColumnName="CODE", nullable = false, insertable=false, updatable=false)
	@JsonIgnore
	public BCyberBaseActivity getActivity() {
		return activity;
	}


	public void setActivity(BCyberBaseActivity activity) {
		this.activity = activity;
	}

}